CommandDelete Class Reference

#include <CommandDelete.h>

Inheritance diagram for CommandDelete:

Command List of all members.

Public Member Functions

 CommandDelete (OSGWindows *osgwind)
 CommandDelete (OSGWindows *osgwind, TraffEduObject *obj)
bool execute ()
bool unexecute ()

Private Attributes

OSGWindows * osgwind_
vector< TraffEduObject * > deletedObjs_
int rightCLK
TraffEduObject * obj_

Constructor & Destructor Documentation

CommandDelete::CommandDelete (  OSGWindows *  osgwind  ) 
 

A constructor. Initializes osgwind_ and rightCLK variables. It is called if the delete operation is done from the menubar.

Parameters:
osgwind an OSGWindows pointer.

CommandDelete::CommandDelete (  OSGWindows *  osgwind,
TraffEduObject *  obj
) 
 

A constructor. Initializes osgwind_, obj_, and rightCLK variables. It is called if the delete operation is done from the menubar.

Parameters:
osgwind an OSGWindows pointer.
obj a TraffEduObject pointer.


Member Function Documentation

bool CommandDelete::execute (   )  [virtual]
 

do the delete operation.

Returns:
Operation success

Implements Command.

bool CommandDelete::unexecute (   )  [virtual]
 

undo the delete operation.

Returns:
Operation success

Implements Command.


Member Data Documentation

vector<TraffEduObject*> CommandDelete::deletedObjs_ [private]
 

a private vector of TraffEduObjects. It holds the deleted objects.

TraffEduObject* CommandDelete::obj_ [private]
 

a private variable. It is used to hold the deleted object.

OSGWindows* CommandDelete::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.

int CommandDelete::rightCLK [private]
 

a private variable. It shows if the CommandDelete is called from the RightClickMenu or not.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO